import "./calc";
import "./unary";
import { GaRegExp, ruleInject, ruleInjectable } from "../InjectionRule";

@ruleInjectable()
export default class semicolonDataRule extends GaRegExp {

	@ruleInject() private variableCreatedlRule!: GaRegExp;

	@ruleInject() private calcRule!: GaRegExp;

	@ruleInject() private typeCreatedRule!: GaRegExp;

	public RuleInit() {
		this.ParseRule([
			this.Supply("SEMICOLON"),
			"(",
			this.variableCreatedlRule, ";", "|",
			this.calcRule, ";", "|",
			this.typeCreatedRule, ";",
			")"
		]);
	}

}
